<%@ page import="com.google.appengine.api.users.User" %>
<%@ page import="com.google.appengine.api.users.UserService" %>
<%@ page import="com.google.appengine.api.users.UserServiceFactory" %>
<%--
  Created by IntelliJ IDEA.
  User: mega
  Date: 22.02.2010
  Time: 16:18:01
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head><title>Simple jsp page</title></head>
<body>
<%
    UserService userService = UserServiceFactory.getUserService();
    User user = userService.getCurrentUser();

    if(user != null){
        response.sendRedirect("/Reader.html");
    }else{
        response.sendRedirect(userService.createLoginURL(request.getRequestURI()));
    }
%>
</body>
</html>